/*
 * FilePath     : \src\api\homeService.ts
 * Author       : 苏军志
 * Date         : 2024-01-16 08:32
 * LastEditors  : SJZ
 * LastEditTime : 2025-03-28 22:23
 * Description  : 首页相关Api接口
 * CodeIterationRecord:
 */

import { http } from "@/utils/http";

const getCarouselImagesApi: string = "/home/GetCarouselImages";
const getHotSaleBrandsApi: string = "/home/GetHotSaleBrands";
const getServicesApi: string = "/home/GetServices";
const getChooseUsDataApi: string = "/home/GetChooseUsData";
const getHotSaleMoldesApi: string = "/home/GetHotSaleMoldes";
const getCustomerReviewsApi: string = "/home/GetCustomerReviews";
const getLatestNewsApi: string = "/home/GetLatestNews";

export class homeService {
  /**
   * @description: 获取首页轮播图
   */
  public static getCarouselImages = http(getCarouselImagesApi, RequestType.GET);
  /**
   * @description: 获取首页热销品牌
   */
  public static getHotSaleBrands = http(getHotSaleBrandsApi, RequestType.GET);
  /**
   * @description: 获取首页服务
   */
  public static getServices = http(getServicesApi, RequestType.GET);
  /**
   * @description: 获取首页选择我们的数据
   */
  public static getChooseUsData = http(getChooseUsDataApi, RequestType.GET);
  /**
   * @description: 获取首页热销类型
   */
  public static getHotSaleMoldes = http(getHotSaleMoldesApi, RequestType.GET);
  /**
   * @description: 获取首页客户评价
   */
  public static getCustomerReviews = http(getCustomerReviewsApi, RequestType.GET);
  /**
   * @description: 获取首页最新新闻
   */
  public static getLatestNews = http(getLatestNewsApi, RequestType.GET);
}
